 enterpriseObj= {
    jumpPage(){
        
       $(document).ready(function() {
        $(".back").click(function() {
            
            history.back();
        });
    });
    },
     addEnterpriseData(){
        url ='http://localhost:3000/enterprise';
        axios.get(url).then(function(rel){
            enterpriseObj.enterpriseList(rel.data);
            
        })
     },
     enterpriseList(list){
        console.log(list);
        var htmlStr = '';
        list.forEach(function (item){
            htmlStr += `
        <li class="item bg-fff flex pt-20 pb-20 pl-15 pr-15 lh15 ">
            <img src="${item.imgUrl}" alt="">
            <div class="text ml-15 bb2 w100p pb-20">
                <p class=" f14"><span>${item.companyName}</span><span class="sc f10 ml-10">认证</span></p>
                <p class=" f10 c888"> <span>${item.peopleNum}</span>|<span>${item.workType}</span></p>
                <p class=" f12 welfare c888"><span >${item.welfare}</span><span class="ml-10">${item.welfare2}</span><span class="ml-10">${item.welfare3}</span></p>
                <p class=" f12 flex aic"><span>热招：</span><span class="base move">${item.hotMove}</span> <span>${item.positionNum}</span><i class="iconfont icon-youjiantou"></i></p>
            </div>
        </li>
            `;
            $('.list').html(htmlStr);
        });
     }
 }